package com.qcby.Service.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qcby.Mapper.DemoMapper;
import com.qcby.Entity.Demo;
import com.qcby.Service.DemoService;

@Service
public class DemoServiceImpl implements DemoService {

   @Autowired
   private DemoMapper demoMapper;

    @Override
        public int deleteByPrimaryKey(Integer id) {
            return cityMapper.deleteByPrimaryKey(id);
        }

        @Override
        public int insert(Demo record) {
            return demoMapper.insert(record);
        }

        @Override
        public int insertSelective(Demo record) {
            return demoMapper.insertSelective(record);
        }

        @Override
        public Demo selectByPrimaryKey(Integer id) {
            return demoMapper.selectByPrimaryKey(id);
        }

        @Override
        public int updateByPrimaryKeySelective(Demo record) {
            return demoMapper.updateByPrimaryKeySelective(record);
        }

        @Override
        public int updateByPrimaryKey(Demo record) {
            return demoMapper.updateByPrimaryKey(record);
        }

}